const fixFormPickerZIndex = {
  data: {
    //  隐藏 view.f
    footerVisibleStatus: false,
    // 隐藏 view.h
    headerVisibleStatus: false,
  },
  methods: {
    /**
     * @description form-picker 弹出层的无法遮挡 view.f
     */
    toggleFooterVisible() {
      this.setData({
        footerVisibleStatus: !this.data.footerVisibleStatus,
      });
    },
    /**
     * @description form-picker 弹出层的无法遮挡 view.h
     */
    toggleHeaderVisible() {
      this.setData({
        headerVisibleStatus: !this.data.headerVisibleStatus,
      });
    },
    /**
     * @description 同时处理form-picker 弹出层的无法遮挡 view.h view.f
     */
    toggleHeaderAndFooterVisible() {
      this.setData({
        footerVisibleStatus: !this.data.footerVisibleStatus,
        headerVisibleStatus: !this.data.headerVisibleStatus,
      });
    },
  },
};

export default fixFormPickerZIndex;
